
<%@ page import="sige.Bimestre" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="main">
  <g:set var="entityName" value="${message(code: 'bimestre.label', default: 'Bimestre')}" />
  <title><g:message code="default.create.label" args="[entityName]" /></title>
</head>
<body>
<center>
  <h1><g:message code="default.create.label" args="[entityName]" /></h1>
</center>
<ul class="breadcrumb">
  <li>
    <a href="${createLink(uri: '/')}">
      <i class="icon-home"></i>
      <g:message code="default.home.label"/>
    </a>
    <span class="divider"><g:message code="span.divider" /></span>
  </li>
  <li>
  <g:link action="list">
    <i class="icon-list"></i>
    <g:message code="default.list.label" args="[entityName]" />
  </g:link>
</li>
</ul>
<div id="create-bimestre" class="content scaffold-create" role="main">
  <g:if test="${flash.message}">
    <div class="alert alert-info">
      <button type="button" class="close" data-dismiss="alert">&times;</button>${flash.message}</div>
  </g:if>
  <g:hasErrors bean="${semestreInstance.bimestre_1}">
    <ul class="alert alert-error">
      <button type="button" class="close" data-dismiss="alert">&times;</button>
      <g:eachError bean="${semestreInstance.bimestre_1}" var="error">
        <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if><g:message error="${error}"/></li>
      </g:eachError>
    </ul>
  </g:hasErrors>
  <g:hasErrors bean="${semestreInstance.bimestre_2}">
    <ul class="alert alert-error">
      <button type="button" class="close" data-dismiss="alert">&times;</button>
      <g:eachError bean="${semestreInstance.bimestre_2}" var="error">
        <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if><g:message error="${error}"/></li>
      </g:eachError>
    </ul>
  </g:hasErrors>
  <div class="span3">
    <ul class="nav nav-tabs nav-stacked span4">
      <li><g:link controller="anoLetivo" action="create" id="${bimestreInstance?.semestre?.ano?.id}">Ano Letivo</g:link></li>
      <li><g:link action="create" id="${bimestreInstance?.semestre?.ano?.id}">1° Semestre</g:link></li>
      <li><g:link action="createBimestres" id="${bimestreInstance?.semestre?.ano?.semestre_1?.id}">1° e 2° Bimestres</g:link></li>
      <li><g:link action="create" id="${bimestreInstance?.semestre?.ano?.id}">2° Semestre</g:link></li>
      <li class="active"><a href="#">   3° e 4° Bimestres</a></li>
    </ul>
  </div>
  <div class="span3">

  </div>
  <g:form action="saveBimestres1" class="span8">
    <fieldset class="form-horizontal well">
      <g:hiddenField name="id"  value="${semestreInstance?.id}"  />
      <g:hiddenField name="ano.id"  value="${semestreInstance?.ano?.id}"  />
      <g:render template="form_4"/>
    </fieldset>
    <fieldset class="form-actions">
      <g:submitButton name="create" class="btn btn-primary" value="${message(code: 'default.button.create.label', default: 'Create')}" />
    </fieldset>
  </g:form>
</div>
</body>
</html>
